package com.aaa.controller.tables;

import com.aaa.entity.Texture;
import com.aaa.service.impl.TextureServiceImpl;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("texture")
public class TextureController {
    @Resource
    TextureServiceImpl textureService;
    @RequestMapping("select")
    public List<Texture> select(){
        return textureService.select();
    }
    @RequestMapping("insert")
    public Integer insert(Texture texture){
        return textureService.insert(texture);
    }
    @RequestMapping("delete")
    public Integer delete(Integer id){
        return textureService.delete(id);
    }
    @RequestMapping("update")
    public Integer update(Texture texture){
        return textureService.update(texture);
    }
}
